import service from "@/axios";

/**
 * 登录
 * @param {*} data
 * @returns
 */
export const getJsonData = () => {
  return {
    resultCode: 200,
    data: [
      {
        id: "gateway_HWSN001888",
        parentId: "0",
        weight: 1,
        name: "Gateway: HG8245H",
        deviceType: "Gateway",
        model: "HG8245H",
        sn: "HWSN001888",
        connectionType: "solid",
        collapsible: false,
        manufacturer: "Huawei",
        children: [
          {
            id: "lan1_HWSN001888",
            parentId: "gateway_HWSN001888",
            weight: 1,
            name: "LAN1",
            deviceType: "LAN",
            connectionType: "dashed",
            collapsible: false,
            speed: "1000Mbps",
            children: [
              {
                id: "router_HWRT00123456",
                parentId: "lan1_HWSN001888",
                weight: 1,
                name: "Router: WS5200",
                deviceType: "Router",
                model: "WS5200",
                sn: "HWRT00123456",
                connectionType: "solid",
                collapsible: false,
                manufacturer: "Huawei",
                children: [
                  {
                    id: "band_HWRT00123456_2.4G",
                    parentId: "router_HWRT00123456",
                    weight: 1,
                    name: "Band: 2.4G",
                    deviceType: "WirelessBand",
                    wirelessBand: "2.4G",
                    connectionType: "dashed",
                    collapsible: true,
                    children: [
                      {
                        id: "wireless_FF:EE:DD:77:88:99",
                        parentId: "band_HWRT00123456_2.4G",
                        weight: 1,
                        name: "Device: XPS 15",
                        deviceType: "WirelessDevice",
                        model: "XPS 15",
                        connectionType: "solid",
                        collapsible: false,
                        mac: "FF:EE:DD:77:88:99",
                        manufacturer: "Dell",
                        traffic: "18.7GB",
                      },
                      {
                        id: "wireless_FF:EE:DD:11:22:33",
                        parentId: "band_HWRT00123456_2.4G",
                        weight: 2,
                        name: "Device: iPhone 15",
                        deviceType: "WirelessDevice",
                        model: "iPhone 15",
                        connectionType: "solid",
                        collapsible: false,
                        mac: "FF:EE:DD:11:22:33",
                        manufacturer: "Apple",
                        traffic: "3.5GB",
                      },
                      {
                        id: "wireless_FF:EE:DD:44:55:66",
                        parentId: "band_HWRT00123456_2.4G",
                        weight: 4,
                        name: "Device: Redmi Note 12",
                        deviceType: "WirelessDevice",
                        model: "Redmi Note 12",
                        connectionType: "solid",
                        collapsible: false,
                        mac: "FF:EE:DD:44:55:66",
                        manufacturer: "Xiaomi",
                        traffic: "5.2GB",
                      },
                    ],
                  },
                  {
                    id: "band_HWRT00123456_5G",
                    parentId: "router_HWRT00123456",
                    weight: 2,
                    name: "Band: 5G",
                    deviceType: "WirelessBand",
                    wirelessBand: "5G",
                    connectionType: "dashed",
                    collapsible: true,
                    children: [
                      {
                        id: "wireless_FF:EE:DD:AA:BB:CC",
                        parentId: "band_HWRT00123456_5G",
                        weight: 3,
                        name: "Device: iPad Pro",
                        deviceType: "WirelessDevice",
                        model: "iPad Pro",
                        connectionType: "solid",
                        collapsible: false,
                        mac: "FF:EE:DD:AA:BB:CC",
                        manufacturer: "Apple",
                        traffic: "12.7GB",
                      },
                      {
                        id: "wireless_FF:EE:DD:CC:DD:EE",
                        parentId: "band_HWRT00123456_5G",
                        weight: 5,
                        name: "Device: Pro M2",
                        deviceType: "WirelessDevice",
                        model: "Pro M2",
                        connectionType: "solid",
                        collapsible: false,
                        mac: "FF:EE:DD:CC:DD:EE",
                        manufacturer: "MacBook",
                        traffic: "32.5GB",
                      },
                    ],
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
    resultMessage: "请求成功",
    currentTime: 1743041767,
  };
};
